package com.zkingsoft.rhi.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author xieguo
 * @since 2020-11-17
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="不可移动文物批次对象", description="不可移动文物批次表")
public class ImmovableHistoricalRelicsPublication implements Serializable {

    private static final long serialVersionUID = 1L;

    public ImmovableHistoricalRelicsPublication(String level,String publicationBatch,String publicationNumber,String publicationTime){
        this.level=level;
        this.publicationBatch=publicationBatch;
        this.publicationNumber=publicationNumber;
        this.publicationTime=publicationTime;
    }

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键ID")
    private Integer id;

    @ApiModelProperty(value = "保护级别")
    private String level;

    @ApiModelProperty(value = "公布批次")
    private String publicationBatch;

    @ApiModelProperty(value = "公布文号")
    private String publicationNumber;

    @ApiModelProperty(value = "公布时间")
    private String publicationTime;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
